package algorithm.linkedList;


//定义一个单链表节点
public class ListNode {

    //指针域和值域
    public int val;
    public ListNode next;

    //构造方法
    public ListNode(int val) {
        this.val = val;

    }

    public ListNode(int val, ListNode next) {
        this.val = val;
        this.next = next;
    }

}
